package reno.activity.mo;

public class Reward {

    String rewardname;
    Long winnerQQ;
    String winnerCard;
    Long order;

    public Reward() {
    }

    public Reward(String rewardname, Long winnerQQ, Long order) {
        this.rewardname = rewardname;
        this.winnerQQ = winnerQQ;
        this.order = order;
    }

    @Override
    public String toString() {
        String res = "恭喜 [CQ:at,qq=FROMQQ] 同学抽中 REWARD ！";
        return res.replace("FROMQQ", winnerQQ!=null?winnerQQ.toString():"null").replace("REWARD", rewardname);
    }

    public String toCardString() {
        String res = "恭喜 [Card] 同学抽中 REWARD ！";
        return res.replace("Card", winnerCard!=null?winnerCard:("QQ号为"+winnerQQ)).replace("REWARD", rewardname);
    }

    public Long getOrder() {
        return order;
    }

    public void setOrder(Long order) {
        this.order = order;
    }

    public String getWinnerCard() {
        return winnerCard;
    }

    public void setWinnerCard(String winnerCard) {
        this.winnerCard = winnerCard;
    }

    public String getRewardname() {
        return rewardname;
    }

    public void setRewardname(String rewardname) {
        this.rewardname = rewardname;
    }

    public Long getWinnerQQ() {
        return winnerQQ;
    }

    public void setWinnerQQ(Long winnerQQ) {
        this.winnerQQ = winnerQQ;
    }
}
